// 构建一个命名空间
var XX;
(function (XX) {
    var Person = /** @class */ (function () {
        function Person(n) {
            this._name = "张三";
            this._name = n;
        }
        Person.prototype.say = function () {
            console.log(this._name);
        };
        return Person;
    }());
    XX.Person = Person;
})(XX || (XX = {}));
var YY;
(function (YY) {
    var Person = /** @class */ (function () {
        function Person(n) {
            this._name = "张三";
            this._name = n;
        }
        Person.prototype.say = function () {
            console.log(this._name);
        };
        return Person;
    }());
})(YY || (YY = {}));
///<reference path="aa.ts" />
// 使用空间中导出的类
var p1 = new XX.Person("王小明");
// 调用实例化对象中方法
p1.say();
